"""
filter
"""

a = [1,2,3,4,5,6,7]
b = filter(lambda x: x > 5, a)
print b


"""
map
"""
a = map(lambda x:x*2,[1,2,3])
print list(a)


"""
reduce
"""
a = reduce(lambda x,y:x*y,range(1,5))
print a

"""
zip
"""

a = [1,2,3]
b = [4,5,6]
c = [4,5,6,7,8]

zipped = zip(a,b)

print zipped

print zip(a,c)

print zip(*zipped)





